package hl.crazy_java.chapter_18;

/**
 * 
 * @author Liu Huan
 */


public class Person {
    private String name;
    private int age;
    public String aa;
    public double bb;
    
	
	public Person() {
	}
	
	public Person(String name, int age) {
		this.name = name;
		this.age = age;
	}
	
	public Person(String name, int age, String aa, double bb) {
		this.name = name;
		this.age = age;
		this.aa = aa;
		this.bb = bb;
	}
	
	public String getName() {
		return name;
	}
	
	public int getAge() {
		return age;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void setAge(int age) {
		this.age = age;
	}
	
	@Override
	public String toString() {
		return "Person{" +
				"name='" + name + '\'' +
				", age=" + age +
				", aa='" + aa + '\'' +
				", bb=" + bb +
				'}';
	}
	
	public void eat(){
		System.out.println("eat ...");
	}
	public void eat(String food){
		System.out.println("eat " + food + " ...");
	}
	
	
}
